﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TankIt.Models;

namespace TankIt.Controllers
{
    public class HoldEmController : Controller
    {
        //
        // GET: /HoldEm/
        HoldEmTable _table = new HoldEmTable();

        public ActionResult Index()
        {
            List<HoldEmPlayer> _players = new List<HoldEmPlayer>();
            for (int s = 0; s < _table.TotalSeats; s++)
            {
                _players.Add(new HoldEmPlayer("Player" + s));
            }

            _table.SeatPlayers(_players);
            _table.Deal();
            return View(_table);
        }

    }
}
